﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using METODESA.Server.Data.METODESA.Entity;

namespace Metodesa.Views.Home
{
    public partial class Error : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            if (Session["User"] != null)
            {
                Empleado usuario = (Empleado)Session["User"];
            }
            else
            {
                Response.Redirect("../../Views/Home/Index.aspx", true);
            }
            if (Session["Error"] != null)
            {
                Exception exception =(Exception) Session["Error"];
                Label1.Visible = true;
                Label1.Text = exception.Message;
            }
            else
            {
                Response.Redirect("../../Views/Home/Index.aspx", true);
            }


        }
    }
}
